/**
 * {作业名称}
 *
 * 输入参数:
 *
 * 输出参数:
 *
 */
(() => {
  // 私有区域

  return function ({ UID, ...args }) {
    // 验证输入参数
    if (!UID) throw Error("无效会话");

    switch (args.action) {
      case 'get': {
        const { Filter, Order, PageSize, PageNo } = args;
        return A.job.CardR({
          UID,
          Card: "子系统",
          Model: ["名称", "简称", "缩写", "序号", "首页页面.名称"],
          Filter, Order, PageSize, PageNo,
        });
      }
      case 'set': {
        const { Record } = args;
        return A.job.CardW({
          UID,
          Card: "子系统",
          Model: ["序号"],
          Record,
        });
      }
    }
  };
})()